﻿using RFID.BLL;
using System;

namespace RFID.PC.CardCenter
{
    public partial class SearchCardForm : ChildForm
    {
        public SearchCardForm(MainForm main, object sender)
              : base(main, sender)
        {
            InitializeComponent();
            Text = Title;
        }

        private void TxtCard_DoubleClick(object sender, System.EventArgs e)
        {
            GetTagIdByDoubleClick(sender);
        }

        private void SearchCardForm_Load(object sender, EventArgs e)
        {
            dataGridView1.DataSource = CardInfoBLL.Select();
        }

        private void Button1_Click(object sender, EventArgs e)
        {
            dataGridView1.DataSource = CardInfoBLL.Select(txtKey.Text);
        }
    }
}
